package br.edu.unifei.cct720.trabalho07.gui.painel;

import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.border.TitledBorder;

public class PainelMenuAcoes extends javax.swing.JPanel {
	
	public PainelMenuAcoes(String title) {
		this.setBorder(BorderFactory.createTitledBorder(null, title, TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION));
		this.initComponents();
	}
	
	public void initComponents() {
		
		// Inicializacao dos componentes da GUI
		radioButtonAddPoints = new javax.swing.JRadioButton("Adicionar pontos");
		radioButtonMovePoints = new javax.swing.JRadioButton("Mover pontos");
		radioButtonDeletePoints = new javax.swing.JRadioButton("Remover pontos");
		
		// Agrupando componentes
		ButtonGroup bgAcoes = new ButtonGroup();
		bgAcoes.add(radioButtonAddPoints);
		bgAcoes.add(radioButtonMovePoints);
		bgAcoes.add(radioButtonDeletePoints);
		
		// Adicionando componentes ao container
		this.add(radioButtonAddPoints);
		this.add(radioButtonMovePoints);
		this.add(radioButtonDeletePoints);		
	}
	
	// Declaracao de components da GUI
	private javax.swing.JRadioButton radioButtonAddPoints;
	private javax.swing.JRadioButton radioButtonMovePoints;
	private javax.swing.JRadioButton radioButtonDeletePoints;
	
	// Metodos getters e setters
	public javax.swing.JRadioButton getRadioButtonAddPoints() {
		return radioButtonAddPoints;
	}

	public javax.swing.JRadioButton getRadioButtonMovePoints() {
		return radioButtonMovePoints;
	}

	public javax.swing.JRadioButton getRadioButtonDeletePoints() {
		return radioButtonDeletePoints;
	}
}
